<form>
	<input type="hidden" name="id" value="${announcement.id}" />
	<div class="form-row">
		<div class="form-label col-md-2">
            <label for="title">标题:</label>
        </div>
        <div class="form-input col-md-4">
            <input name="title" value="${announcement.title}" data-required="true" data-rangelength="[1,10]" type="text">
        </div>
        <div class="form-label col-md-2">
            <label for="category">类别:</label>
        </div>
        <div class="form-input col-md-4">
            <select name="category">
            	<option value="平台公告" <#if announcement.category == '平台公告'>selected</#if> >平台公告</option>
                <option value="银行消息" <#if announcement.category == '银行消息'>selected</#if> >􏱧􏱨􏰋􏰌􏱧􏱨􏰋􏰌􏱧􏱨􏰋􏰌􏱧􏱨􏰋􏰌􏱧􏱨􏰋􏰌􏱧􏱨􏰋􏰌银行消息</option>
                <option value="交易消息" <#if announcement.category == '交易消息'>selected</#if> >交易消息</option>
                <option value="红包消息" <#if announcement.category == '红包消息'>selected</#if> >红包消息</option>
                <option value="活动信息" <#if announcement.category == '活动信息'>selected</#if> >活动信息</option>
                <option value="兑付消息" <#if announcement.category == '兑付消息'>selected</#if> >兑付消息</option>
            </select>
        </div>
	</div>
	<div class="form-row">
		<div class="form-label col-md-2">
            <label for="expireTime">过期时间:</label>
        </div>
        <div class="form-input col-md-4">
            <input name="expireTime" value="${announcement.expireTime?string('yyyy-MM-dd HH:mm:ss')}" data-required="true" type="text" onclick="WdatePicker({isShowWeek:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})">
        </div>
        <div class="form-label col-md-2">
            <label for="alertExpireTime">提醒过期:</label>
        </div>
        <div class="form-input col-md-4">
            <input name="alertExpireTime" value="${(announcement.alertExpireTime?string('yyyy-MM-dd HH:mm:ss'))!''}" placeholder="不填不在App顶部提醒" type="text" onclick="WdatePicker({isShowWeek:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})">
        </div>
	</div>
	<div class="form-row">
		<div class="form-input col-md-12">
            <textarea name="content" placeholder="公告内容" data-required="true" data-rangelength="[1,140]">${announcement.content}</textarea>
        </div>
	</div>
	<div class="form-row">
		<div class="form-input col-md-12">
            <input name="url" value="${announcement.url}" placeholder="打开网页地址" type="text">
        </div>
	</div>
	<div class="form-row">
        <div class="form-label col-md-2">
            <label for="">
                打开App:
            </label>
        </div>
        <div class="form-input col-md-4">
            <select name="openAppPage">
                <option value="">选择打开App页面</option>
                <option value="Home" <#if announcement.openAppPage == 'Home'>selected</#if> >首页</option>
                <option value="Product" <#if announcement.openAppPage == 'Product'>selected</#if> >理财产品</option>
                <option value="MyAsset" <#if announcement.openAppPage == 'MyAsset'>selected</#if> >我的资产</option>
                <option value="MyBonus" <#if announcement.openAppPage == 'MyBonus'>selected</#if> >我的红包</option>
                <option value="More" <#if announcement.openAppPage == 'More'>selected</#if> >更多</option>
                <option value="AboutHejia" <#if announcement.openAppPage == 'AboutHejia'>selected</#if> >关于快聚财</option>
            </select>
        </div>
    </div>
</form>